home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / uncr233.zip / UNCR231.MSG next >
Text File  |  1993-05-23  |  2KB  |  41 lines

  1. Date: Friday, 19 December 1986  23:07-EST
  2. From: Frank Prindle
  3. To:   Keith Petersen, W8SDZ
  4. Re:   Uncrunching on UNIX etc. here at last
  5.  
  6. UNCR231.C is a copy of what I consider to be a first release of
  7. UNCR.C.  It is portable enough to compile and execute ok on an 8-bit
  8. CP/M system, though about 2.5 times slower than the real UNCR 2.3.  So
  9. it's major application is uncrunching on the host (UNIX, VMS, TOPS-20,
  10. etc...)  systems.  I've tested it through all it's major paths on a
  11. Sun-3, a VAX-11/780, and the C-128 CP/M.  Here is an abstract:
  12.  
  13. UNCR231.C is a C language implementation of the LZW decompression
  14. algorithm utilized by Steven Greenberg's Z-80 CP/M program UNCR
  15. Version 2.3 (from PD:<CPM.SQUSQ>CRUNCH23.LBR).  This program will
  16. decompress (uncrunch) any file written with CRUNCH 2.x, although it
  17. will not work with files written by CRUNCH 1.x (an earlier algorithm).
  18. The only requirements placed on the C compiler used are that it
  19. support a long type of at least 4 bytes (actually 21 bits will do),
  20. and that it will read and write files in binary (no newline or ^Z
  21. translation) using getc()/putc() when the files have been opened with
  22. mode "rb"/"wb".  This is absolutely the case for UNIX on 32 bit
  23. machines, but may require some coaxing on other systems, particularly
  24. CP/M and MSDOS compilers.  Note that UNCR231.C is not recommended for
  25. use on z-80 CP/M systems, since the real thing is over twice as fast;
  26. rather it is meant to fill the gap and allow these "crunched" files to
  27. be recovered on more powerful systems where speed is not an issue.
  28. Usage is just:
  29.  
  30. $ uncr <filename> [<another filename> ...]
  31.  
  32. If your shell or O.S. does wildcard expansion, by all means use that.
  33. Files not in "crunched" format will be skipped.  The decompressed
  34. files will have the names of the original CP/M files (in lower case if
  35. that is significant on your system).  This program follows in the
  36. footsteps of usq.c and lar.c in attempting to provide a portable
  37. implentation of a popular algorithm.
  38.  
  39. Sincerely,
  40. Frank Prindle
  41.